package cruciverba.file01;

import javax.swing.JTextField;

import cruciverba.model.Verifica;

public class CruciverbaWriteLine implements ILineWriter {

	private Verifica verifica;
	private JTextField field;

	public CruciverbaWriteLine(Verifica verifica, JTextField field) {
		super();
		this.verifica = verifica;
		this.field = field;
	}

	@Override
	public String composeLineToWrite() {
		String lineToWrite = new String(verifica.getTipo_verifica() + "\t"
				+ field.getText() + "\t" + verifica.getResultVerifica() + "\n");
		return lineToWrite;
	}

}
